Programming with QuickTime VR

| Previous | Chapter contents | Chapter top | Section top | Next |

QTVRSetInteractionProperty

You can use the QTVRSetInteractionProperty function to set the value of an interaction property.

OSErr QTVRSetInteractionProperty (
                     QTVRInstanceqtvr,
                     UInt32 property,
                     void*value);
qtvr
An instance of a QuickTime VR movie.
property
An interaction property type. See "Interaction Property Types" for a description of the available types of interaction properties.
value
The desired value of the specified interaction property.
function result
A result code.

DESCRIPTION

The QTVRSetInteractionProperty function sets the value of the interaction property of the type specified by the property parameter for the movie specified by the qtvr parameter to the value specified by the value parameter. For types that occupy 32 or fewer bits of memory, you pass the desired value itself (cast to a void * ) in the value parameter. For structures and floating-point values, you must pass a pointer to the desired value in the value parameter.

Floating-point values are usually stored as 32-bit values, but compilers differ in how they pass floating-point values as parameters; as a result, QTVRSetInteractionProperty demands that floating-point values always be passed by reference.

SEE ALSO

Use QTVRGetInteractionProperty [link] to get an interaction property.


© 1997 Apple Computer, Inc.

| Previous | Chapter contents | Chapter top | Section top | Next |